/**
 * Created by luojie on 2018/3/20.
 */
import "../css/loading.scss";

export default class Loading extends React.PureComponent {

	constructor(props) {
		super(props)
	}
	static defaultProps = {
		text: "加载中...",
		isShow: true
	}

	render() {
		const { text, isShow } = this.props
		return (
			isShow ?
				<div className="max">
					<div className="loading-content">
						<i />
						{text?<p>{text}</p>:null}
					</div>
				</div>:null
		)
	}
};